package com.tensquare.rabbit.test;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "zwb3")
public class Customer3 {
    @RabbitHandler
    public void showMessage(String message) {
        System.out.println("kudingyu接收到消息：" + message);
    }
}
